package com.starlink.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.starlink.common.domain.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author zhanghong
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel("商城订单退款记录响应模型")
public class MallRefundPriceVO extends BaseVO implements Serializable {
    @ApiModelProperty("售后ID")
    private Long refundId;
    @ApiModelProperty("商户退款单号")
    private String refundNum;
    @ApiModelProperty("微信退款单号")
    private String wxRefundNum;
    @ApiModelProperty("订单号")
    private String orderNum;
    @ApiModelProperty("退款金额")
    private BigDecimal refundPrice;
    @ApiModelProperty("退款方式 0:全部退款 1:部分退款  支持商户自定义退款金额,但不得大于订单总金额")
    private Integer refundType;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("退款成功时间")
    private Date refundTime;
}
